package com.y.ari.common;


import com.y.ari.dto.EmployeeDTO;

public class EmpHolder {
    private static final ThreadLocal<EmployeeDTO> tl = new ThreadLocal<>();

    public static void saveEmp(EmployeeDTO employeeDTO) {
        tl.set(employeeDTO);
    }

    public static EmployeeDTO getEmp() {
        return tl.get();
    }

    public static void removeEmp() {
        tl.remove();
    }
}
